<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="/${initParam.context_root}/boardUpdate.do" method="post" enctype="multipart/form-data">
		<input type="hidden" value="${requestScope.show_content.no}" name="no">
		<input type="hidden" value="${requestScope.page}" name="page">
		<table border="2" cellspacing="0" width="850" cellpadding="10px" bgcolor="#fffafa">
			<tr bgcolor="lightblue">
				<td colspan="2"><b>글 수정</b></td>
			</tr>
			<tr>
				<td>제목</td>
				<td><input type="text" name="title" size="130"
					value="${requestScope.show_content.title}"></td>
			</tr>
			<c:if test="${requestScope.show_content.contentGroup!=1 }">
				<tr>
					<td></td>
					<td>
					${requestScope.show_content.pictureName}
						<c:choose>
							<c:when test="${not empty requestScope.show_content.pictureName}">
								<a href="/${initParam.context_root }/deleteFile.do?no=${requestScope.show_content.no}">사진삭제</a>
							</c:when>
							<c:otherwise>
								<input type="file" value="찾아보기.." name="upfile">
							</c:otherwise>
						</c:choose></td>
				</tr>
			</c:if>
			<tr>
				<td></td>
				<td><textarea rows="10" cols="105" name="content">${requestScope.show_content.content}</textarea></td>
			</tr>
			<tr>
				<td colspan=2 align="center"><input type="submit" value="등록">
				<input type="reset" value="초기화"></td>
			</tr>
		</table>
	</form>
</body>
</html>